package org.pada.domain;

/**
 * @author pengshen
 * @date 2022.05.19 21:41
 */
public interface Entity {

    Object getId();

    default boolean equals (Entity object) {
        if (object == null) {
            return false;
        }
        if (this == object) {
            return true;
        }
        return this.getId().equals(object.getId());
    }
}